#ifndef SERVERMONOTHREAD_H
#define SERVERMONOTHREAD_H

#include <QTcpSocket>
#include <QDataStream>
#include <QTime>
#include "server.h"
#include "service.h"

class ServerMonothread : public Server
{
    Q_OBJECT
public:
    ServerMonothread(Service *service, int waitForAnswer);

private slots:
    void onReadyRead();

protected:
    virtual void incomingConnection(int handle);
private:
    Service *service;
    int waitForAnswer;
    quint16 nextBlockSize;
};


#endif // SERVERMONOTHREAD_H
